﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ATM.BUS;

namespace ATM.UnitTest
{
    [TestFixture()]
    public class InsertCardUT
    {
        private string case1 = "", case2 = "111111111111AAAA", case3 = "987654321ABCFRSA";

        [TestCase]
        public void TestNotValidCardNo()
        {
            Assert.AreEqual(ValidationBUS.ValidateCardID(case3),0);
        }

        [TestCase]
        public void TestWrongCardNo()
        {
            Assert.AreEqual(ValidationBUS.ValidateCardID(case1), 2);
        }

        [TestCase]
        public void TestValidCardNo()
        {
            Assert.AreEqual(ValidationBUS.ValidateCardID(case2), 1);
        }
    }
}
